package com.maoning.gulimallsearch.feign;

import com.maoning.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author : 猫宁
 * @Date: 2022/2/14
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 信息
     */
    @RequestMapping("/product/attr/info/{attrId}")
    public R attrInfo(@PathVariable("attrId") Long attrId);


    /**
     * 根据一堆id查品牌集合
     */
    @GetMapping("product/brand/infos")
    public R brandInfos(@RequestParam("brandIds") List<Long> brandIds);
}
